if (process.env.browser) {
    const { cachepromise } = require("./cachepromise");
    const { fetchinbrowser } = require("./fetchinbrowser");
    /**
     * @type { (u: string) => Promise<string>}
     * */
    module.exports = cachepromise(fetchinbrowser);
} else {
    const { defaultconfig } = require("../src/defaultconfig");
    const { default: createfetchinpre } = require("../prerender/fetchinpre");
    /**
     * @type { (u: string) => Promise<string>}
     * */
    module.exports = createfetchinpre(defaultconfig.baseurl);
}
